import request from "@/utils/service"

// 系统管理a页面查看列表
export function  one_list( payload = {} ){
    return request.get('/MIS/users', { params: payload } )
    
}

//系统管理a页面添加用户
// export function add (payload :any){
//     return request.post('/MIS/users',  payload  )
    export function add (users:any){
        return request({
            url:'/MIS/users',
            method:"post",
            data:{
                users,
            }
        })
    }

// 系统管理a页面查找用户
export function look (payload = {}){
    return request.get('/MIS/users'+payload )
}
//系统管理a页面删除用户
export function del (id:any){
    return request({
        url:'/MIS/users',
        method:"delete",
        params:{
            id,
        }
    })
}




//系统管理管理b页面查看列表
export function  two_list(payload = {}){
    return request.get('/MIS/roles', { params: payload } )
}
//系统管理管理b页面添加用户
export function adda(payload:any){
    return request.post('/MIS/roles',  payload  )
}
//系统管理b页面删除用户
export function delb (id:any){
    return request({
        url:'/MIS/roles',
        method:"delete",
        params:{
            id,
        }
    })
}

//报表管理
export function excel (payload = {}){
    return request.get('http://localhost:3000/profile', { params: payload } )
}


